/* Navigation Bar */
.navbar {
  background: rgb(19,82,245);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  font-family: montserrat;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 20vh;
  padding: 0 25px;
  letter-spacing: 1px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 55%;
  justify-content: space-between;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: normal;
  font-size: 1.1rem;
  padding: 5px 0;
  transition: all 0.3s;
  display: inline-block;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: white;
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

/* Underline for current page */
.current-page::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  margin: 5px 0;
  transition: all 0.4s ease-in-out;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-container {
    height: 10vh;
    padding: 0 15px;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 10vh;
    left: 0;
    width: 100%;
    background: rgb(19,82,245);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    max-height: 400px;
  }

  .nav-item {
    margin: 15px 0;
  }

  /* Animated Hamburger */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
